package com.erlin.common.api.param;

import com.erlin.platform.constant.user.UserRoleEnum;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

import javax.validation.constraints.NotBlank;
import java.io.Serializable;

@Getter
@Setter
@ApiModel("微信用户注册参数")
public class WxRegisterParam implements Serializable {
    @ApiModelProperty("用户openId")
    @NotBlank
    private String openId;
    @ApiModelProperty("用户名")
    private String username;
    @ApiModelProperty("昵称-可以直接使用微信昵称")
    @NotBlank
    private String nickName;
    @ApiModelProperty("头像")
    private String icon;
    @ApiModelProperty("电话号码")
    @NotBlank
    private String phoneNum;
    @ApiModelProperty(hidden = true)
    private String userClas = UserRoleEnum.CUSTOMER.toString();
}
